Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Zen of Python</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Zen_of_Python"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/ext.pygments.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Zen_of_Python rootpage-Zen_of_Python skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Zen of Python</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">

<p>The <b>Zen of Python</b> is a collection of 19 <a href="Coding_conventions" title="Coding conventions">"guiding principles"</a> for writing <a href="Computer_program" title="Computer program">computer programs</a> that influence the design of the <a href="Python_(programming_language)" title="Python (programming language)">Python</a> <a href="Programming_language" title="Programming language">programming language</a>.<sup id="cite_ref-hitchhiker_1-0" class="reference"><a href="#cite_note-hitchhiker-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> Python code that aligns with these principles is often referred to as "Pythonic".<sup id="cite_ref-:1_2-0" class="reference"><a href="#cite_note-:1-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p><p><a href="Software_engineer" class="mw-redirect" title="Software engineer">Software engineer</a> <a href="Tim_Peters_(software_engineer)" title="Tim Peters (software engineer)">Tim Peters</a> wrote this set of principles and posted it on the Python <a href="Mailing_list" title="Mailing list">mailing list</a> in 1999.<sup id="cite_ref-Peters_1999-06-04_3-0" class="reference"><a href="#cite_note-Peters_1999-06-04-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> Peters' list left open a 20th principle "for Guido to fill in", referring to <a href="Guido_van_Rossum" title="Guido van Rossum">Guido van Rossum</a>, the original author of the Python language. The vacancy for a 20th principle has not been filled.
</p><p>Peters' Zen of Python was included as entry number 20 in the language's official <a href="Python_Enhancement_Proposal" class="mw-redirect" title="Python Enhancement Proposal">Python Enhancement Proposals</a> and was released into the <a href="Public_domain" title="Public domain">public domain</a>.<sup id="cite_ref-pep20_4-0" class="reference"><a href="#cite_note-pep20-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> It is also included as an <a href="Easter_egg_(software)" class="mw-redirect" title="Easter egg (software)">Easter egg</a> in the Python <a href="Interpreter_(computing)" title="Interpreter (computing)">interpreter</a>, where it can be displayed by entering <code class="mw-highlight mw-highlight-lang-python mw-content-ltr" dir="ltr"><span class="kn">import</span><span class="w"> </span><span class="nn">this</span></code>.<sup id="cite_ref-hitchhiker_1-1" class="reference"><a href="#cite_note-hitchhiker-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-pep20_4-1" class="reference"><a href="#cite_note-pep20-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>a<span class="cite-bracket">]</span></a></sup>
</p><p>In May 2020, Barry Warsaw (developer of <a href="GNU_Mailman" title="GNU Mailman">GNU Mailman</a>) used it as the lyrics to a song.<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup>
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="Principles">Principles</h2></div>

<p>The principles are listed as follows:<sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">[</span>b<span class="cite-bracket">]</span></a></sup>
</p>
<blockquote style="text-indent:-2ex;padding-left:4ex;">
<style data-mw-deduplicate="TemplateStyles:r1126788409">
/* start https://en.wikipedia.org/ */


.mw-parser-output .plainlist ol,.mw-parser-output .plainlist ul{line-height:inherit;list-style:none;margin:0;padding:0}.mw-parser-output .plainlist ol li,.mw-parser-output .plainlist ul li{margin-bottom:0}


/* end https://en.wikipedia.org/ */
</style><div class="plainlist">
<ul><li>Beautiful is better than ugly.</li>
<li>Explicit is better than implicit.</li>
<li><a href="KISS_principle" title="KISS principle">Simple</a> is better than complex.</li>
<li>Complex is better than complicated.</li>
<li>Flat is better than <a href="Nesting_(computing)" title="Nesting (computing)">nested</a>.</li>
<li><a href="Minimalism#Design,_architecture,_and_spaces" title="Minimalism">Sparse</a> is better than dense.</li>
<li><a href="Computer_programming#Readability_of_source_code" title="Computer programming">Readability</a> counts.</li>
<li><a href="Edge_case" title="Edge case">Special cases</a> aren't special enough to break the rules.</li>
<li>Although <a href="Perfect_is_the_enemy_of_good" title="Perfect is the enemy of good">practicality</a> beats purity.</li>
<li>Errors should never pass silently.</li>
<li>Unless explicitly silenced.</li>
<li>In the face of <a href="Ambiguity_aversion" title="Ambiguity aversion">ambiguity</a>, refuse the temptation to guess.</li>
<li>There should be one-- and preferably only one --obvious way to do it.<sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">[</span>c<span class="cite-bracket">]</span></a></sup></li>
<li>Although that way may not be obvious at first unless you're Dutch.</li>
<li>Now is better than never.</li>
<li>Although never is often better than <em>right</em> now.<sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">[</span>d<span class="cite-bracket">]</span></a></sup></li>
<li>If the <a href="Implementation" title="Implementation">implementation</a> is hard to <a href="Rubber_duck_debugging" title="Rubber duck debugging">explain</a>, it's a bad idea.</li>
<li>If the implementation is easy to explain, it may be a good idea.</li>
<li><a href="Namespaces" class="mw-redirect" title="Namespaces">Namespaces</a> are one honking great idea&nbsp;– let's do more of those!</li></ul>
</div>
</blockquote>
<div class="mw-heading mw-heading2"><h2 id="Being_Pythonic">Being Pythonic</h2></div><p>
One of the principles, "There should be one-- and preferably only one --obvious way to do it", can be referenced as the "Pythonic" way.<sup id="cite_ref-:0_12-0" class="reference"><a href="#cite_note-:0-12"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup> The official definition of "Pythonic" is:<sup id="cite_ref-:1_2-1" class="reference"><a href="#cite_note-:1-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup></p><blockquote><p>An idea or piece of code which closely follows the most common idioms of the Python language, rather than implementing code using concepts common to other languages. For example, a common idiom in Python is to loop over all elements of an iterable using a <code>for</code> statement. Many other languages don’t have this type of construct, so people unfamiliar with Python sometimes use a numerical counter instead:
</p><div class="mw-highlight mw-highlight-lang-python mw-content-ltr" dir="ltr"><pre><span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">food</span><span class="p">)):</span>
<span class="nb">print</span><span class="p">(</span><span class="n">food</span><span class="p">[</span><span class="n">i</span><span class="p">])</span>
</pre></div>
<p>As opposed to the cleaner, Pythonic method:
</p>
<div class="mw-highlight mw-highlight-lang-python mw-content-ltr" dir="ltr"><pre><span class="k">for</span> <span class="n">piece</span> <span class="ow">in</span> <span class="n">food</span><span class="p">:</span>
<span class="nb">print</span><span class="p">(</span><span class="n">piece</span><span class="p">)</span>
</pre></div>
</blockquote>
<p>Code that is difficult to understand or reads like a rough transcription from another programming language is called <i>unpythonic</i>.<sup id="cite_ref-13" class="reference"><a href="#cite_note-13"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="In_practice">In practice</h2></div>
<p>Since the release of the Zen of Python, there has been research done on its effectiveness and actual use among developers. Despite the difference in interpretation between beginners and experienced Python programmers, interviews among 13 Python programmers of varying skill show that the Zen of Python "positively influences the way developers write and talk about code".<sup id="cite_ref-:0_12-1" class="reference"><a href="#cite_note-:0-12"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup> Researchers extended this <a href="Case_study" title="Case study">case study</a> to explore the use of Python <a href="Programming_idiom" title="Programming idiom">idioms</a> on <a href="GitHub" title="GitHub">GitHub</a> repositories, and found that the usage of "Pythonic idioms"<sup id="cite_ref-14" class="reference"><a href="#cite_note-14"><span class="cite-bracket">[</span>e<span class="cite-bracket">]</span></a></sup> increased over time.<sup id="cite_ref-15" class="reference"><a href="#cite_note-15"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup> Writing Python code that aligns with the Zen of Python may save <a href="Computer_memory" title="Computer memory">memory</a> and <a href="Execution_(computing)" title="Execution (computing)">run time</a> of Python programs.<sup id="cite_ref-16" class="reference"><a href="#cite_note-16"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup> The desire to write in Pythonic code has led to <a href="Code_refactoring" title="Code refactoring">refactoring</a> tools to help programmers achieve this goal.<sup id="cite_ref-17" class="reference"><a href="#cite_note-17"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-18" class="reference"><a href="#cite_note-18"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<ul><li><a href="Convention_over_configuration" title="Convention over configuration">Convention over configuration</a></li>
<li><a href="There's_more_than_one_way_to_do_it" class="mw-redirect" title="There's more than one way to do it">There's more than one way to do it</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Notes">Notes</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */


.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}


/* end https://en.wikipedia.org/ */
</style><div class="reflist reflist-lower-alpha">
<div class="mw-references-wrap"><ol class="references">
<li id="cite_note-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-5">^</a></b></span> <span class="reference-text">The source code for the Zen of Python can be found <a rel="nofollow" class="external text" href="https://github.com/python/cpython/blob/main/Lib/this.py">on Github</a>.</span>
</li>
<li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text">Wikipedia links below are added for further reference and understanding, and were not explicitly linked in the Zen of Python</span>
</li>
<li id="cite_note-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-10">^</a></b></span> <span class="reference-text">The formatting of the <a href="Dash" title="Dash">dashes</a> in this line and the final is purposely inconsistent, in reference to the varying formatting conventions.<sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup></span>
</li>
<li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text">In the interpreter easter egg, this is written as "Although never is often better than *right* now." This follows a longstanding convention of <a href="Plain_text" title="Plain text">plain-text</a> communication — in which common formatting features are often impossible — where <a href="Emphasis_(typography)" title="Emphasis (typography)">emphasis</a> is represented with asterisks.</span>
</li>
<li id="cite_note-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-14">^</a></b></span> <span class="reference-text">A list of their Pythonic idioms can be found here <a rel="nofollow" class="external free" href="https://slimshadyiam.github.io/ZenYourPython/">https://slimshadyiam.github.io/ZenYourPython/</a></span>
</li>
</ol></div></div>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<div class="reflist">
<div class="mw-references-wrap mw-references-columns"><ol class="references">
<li id="cite_note-hitchhiker-1"><span class="mw-cite-backlink">^ <a href="#cite_ref-hitchhiker_1-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-hitchhiker_1-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */


.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}


/* end https://en.wikipedia.org/ */
</style><cite id="CITEREFReitz2011–2019" class="citation web cs1">Reitz, Kenneth (2011–2019). <a rel="nofollow" class="external text" href="http://docs.python-guide.org/en/latest/writing/style/#zen-of-python">"Code Style"</a>. <i>The Hitchhiker’s Guide to Python</i>. § Zen of Python<span class="reference-accessdate">. Retrieved <span class="nowrap">March 26,</span> 2019</span>.</cite></span>
</li>
<li id="cite_note-:1-2"><span class="mw-cite-backlink">^ <a href="#cite_ref-:1_2-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-:1_2-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://docs.python.org/3/glossary.html#term-Pythonic">"Glossary"</a>. <i>Python Documentation</i><span class="reference-accessdate">. Retrieved <span class="nowrap">2024-02-07</span></span>.</cite></span>
</li>
<li id="cite_note-Peters_1999-06-04-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-Peters_1999-06-04_3-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFPeters1999" class="citation web cs1"><a href="Tim_Peters_(software_engineer)" title="Tim Peters (software engineer)">Peters, Tim</a> (June 4, 1999). <a rel="nofollow" class="external text" href="https://mail.python.org/pipermail/python-list/1999-June/001951.html">"The Python Way"</a>. <a href="Python_Software_Foundation" title="Python Software Foundation">Python Software Foundation</a><span class="reference-accessdate">. Retrieved <span class="nowrap">March 26,</span> 2019</span>.</cite></span>
</li>
<li id="cite_note-pep20-4"><span class="mw-cite-backlink">^ <a href="#cite_ref-pep20_4-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-pep20_4-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFPeters2004" class="citation web cs1">Peters, Tim (August 19, 2004). <a rel="nofollow" class="external text" href="https://www.python.org/dev/peps/pep-0020/">"PEP 20—The Zen of Python"</a>. <a href="Python_Software_Foundation" title="Python Software Foundation">Python Software Foundation</a><span class="reference-accessdate">. Retrieved <span class="nowrap">March 26,</span> 2019</span>.</cite></span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><cite id="CITEREFWarsaw2020" class="citation web cs1">Warsaw, Barry (10 May 2020). <a rel="nofollow" class="external text" href="https://wefearchange.org/2020/05/zenofpython.rst.html">"The Zen of Python"</a>. <i>We Fear Change</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20200603010307/https://wefearchange.org/2020/05/zenofpython.rst.html">Archived</a> from the original on 2020-06-03.</cite></span>
</li>
<li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text"><cite id="CITEREFWarsaw2020" class="citation audio-visual cs1">Warsaw, Barry (23 May 2020). <a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=i6G6dmVJy74"><i>The Zen of Python</i></a>. <i><a href="YouTube" title="YouTube">YouTube</a></i>. The Zbwedicon. <a rel="nofollow" class="external text" href="https://ghostarchive.org/varchive/youtube/20211211/i6G6dmVJy74">Archived</a> from the original on 2021-12-11.</cite> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20200603010403/https://www.youtube.com/watch?v=i6G6dmVJy74">Archived</a> 2020-06-03 at the Wayback Machine</span>
</li>
<li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://bugs.python.org/issue3364">"Issue 3364: An ortographical typo in Zen of Python text - Python tracker"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">2021-02-10</span></span>.</cite></span>
</li>
<li id="cite_note-:0-12"><span class="mw-cite-backlink">^ <a href="#cite_ref-:0_12-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-:0_12-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFAlexandruMerchantePanichellaProksch2018" class="citation book cs1">Alexandru, Carol V.; Merchante, José J.; Panichella, Sebastiano; Proksch, Sebastian; Gall, Harald C.; Robles, Gregorio (2018-10-24). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240324015819/https://www.zora.uzh.ch/id/eprint/156901/1/paper.pdf">"On the usage of pythonic idioms"</a> <span class="cs1-format">(PDF)</span>. <a rel="nofollow" class="external text" href="https://www.zora.uzh.ch/id/eprint/156901/1/paper.pdf"><i>Proceedings of the 2018 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software</i></a> <span class="cs1-format">(PDF)</span>. Onward! 2018. New York, NY, USA: Association for Computing Machinery. pp.&nbsp;<span class="nowrap">1–</span>11. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F3276954.3276960">10.1145/3276954.3276960</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-1-4503-6031-9</bdi>. <a href="OCLC_(identifier)" class="mw-redirect" title="OCLC (identifier)">OCLC</a>&nbsp;<a rel="nofollow" class="external text" href="https://search.worldcat.org/oclc/1362712424">1362712424</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a>&nbsp;<a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:53057358">53057358</a>. Archived from the original on 2024-03-24<span class="reference-accessdate">. Retrieved <span class="nowrap">2024-02-19</span></span>.</cite><span class="cs1-maint citation-comment"><code class="cs1-code">{{cite book}}</code>: CS1 maint: bot: original URL status unknown (link)</span></span>
</li>
<li id="cite_note-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-13">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://docs.python-guide.org/writing/style">"Code Style – The Hitchhiker's Guide to Python"</a>. <i>docs.python-guide.org</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210127154341/https://docs.python-guide.org/writing/style/">Archived</a> from the original on 27 January 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">20 January</span> 2021</span>.</cite></span>
</li>
<li id="cite_note-15"><span class="mw-cite-backlink"><b><a href="#cite_ref-15">^</a></b></span> <span class="reference-text"><cite id="CITEREFFarooqZaytsev2021" class="citation book cs1">Farooq, Aamir; Zaytsev, Vadim (2021-11-22). <a rel="nofollow" class="external text" href="https://dl.acm.org/doi/10.1145/3486608.3486909">"There is more than one way to zen your Python"</a>. <i>Proceedings of the 14th ACM SIGPLAN International Conference on Software Language Engineering</i>. SLE 2021. New York, NY, USA: Association for Computing Machinery. pp.&nbsp;<span class="nowrap">68–</span>82. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F3486608.3486909">10.1145/3486608.3486909</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-1-4503-9111-5</bdi>.</cite></span>
</li>
<li id="cite_note-16"><span class="mw-cite-backlink"><b><a href="#cite_ref-16">^</a></b></span> <span class="reference-text"><cite id="CITEREFLeelapruteChinthanetWattanakriengkraiKula2022" class="citation book cs1">Leelaprute, Pattara; Chinthanet, Bodin; Wattanakriengkrai, Supatsara; Kula, Raula Gaikovina; Jaisri, Pongchai; Ishio, Takashi (2022-10-20). <a rel="nofollow" class="external text" href="https://doi.org/10.1145/3524610.3527879">"Does coding in Pythonic zen peak performance?: Preliminary experiments of nine Pythonic idioms at scale"</a>. <i>Proceedings of the 30th IEEE/ACM International Conference on Program Comprehension</i>. ICPC '22. New York, NY, USA: Association for Computing Machinery. pp.&nbsp;<span class="nowrap">575–</span>579. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F3524610.3527879">10.1145/3524610.3527879</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-1-4503-9298-3</bdi>.</cite></span>
</li>
<li id="cite_note-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-17">^</a></b></span> <span class="reference-text"><cite id="CITEREFZhangXingXiaXu2022" class="citation cs2">Zhang, Zejun; Xing, Zhenchang; Xia, Xin; Xu, Xiwei; Zhu, Liming (2022-07-12), <i>Making Python Code Idiomatic by Automatic Refactoring Non-Idiomatic Python Code with Pythonic Idioms</i>, <a href="ArXiv_(identifier)" class="mw-redirect" title="ArXiv (identifier)">arXiv</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://arxiv.org/abs/2207.05613">2207.05613</a></span></cite></span>
</li>
<li id="cite_note-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-18">^</a></b></span> <span class="reference-text"><cite id="CITEREFPhan-udomWattanakulSakulniwatRagkhitwetsagul2020" class="citation cs2">Phan-udom, Purit; Wattanakul, Naruedon; Sakulniwat, Tattiya; Ragkhitwetsagul, Chaiyong; Sunetnanta, Thanwadee; Choetkiertikul, Morakot; Kula, Raula Gaikovina (2020-09-05), <i>Teddy: Automatic Recommendation of Pythonic Idiom Usage For Pull-Based Software Projects</i>, <a href="ArXiv_(identifier)" class="mw-redirect" title="ArXiv (identifier)">arXiv</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://arxiv.org/abs/2009.03302">2009.03302</a></span></cite></span>
</li>
</ol></div></div>
<div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2></div>
<ul><li><a rel="nofollow" class="external text" href="https://www.python.org/dev/peps/pep-0020/">PEP20 on Python website</a></li>
<li><a rel="nofollow" class="external text" href="https://pep20.org/">PEP 20 ~ The Zen of Python by Tim Peters</a></li></ul></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-07-20" href="https://en.wikipedia.org/wiki/?title=Zen_of_Python&amp;oldid=1301580352">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>

</body></html>